package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CgfkBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CgfkService extends BaseService<CgfkBean> {

	CgfkBean getCgfkBeanById(String id) throws Exception;
	
	void removeCgfkBeanById(String id) throws Exception;
	
	void removeCgfkBeanByIds(String ids) throws Exception;
	
	CgfkBean saveCgfkBean(CgfkBean crm) throws Exception;
	
	CgfkBean updateCgfkBean(CgfkBean crm) throws Exception;
	
	Page<CgfkBean>  findCgfkBeanByCond(CgfkBean bean,
			Page<CgfkBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCgfkBeanExt(String sql) throws Exception;

	String findCgfkBeanExtCreate(String tableName) throws Exception;

	String findCgfkBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCgfkBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCgfkBeanExtData(String tableName, String id)
			throws Exception;
}